package com.fuluwa.domain.usercenter.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fuluwa.domain.shared.AbstractIdMantainceDomainObject;

@Entity
@Table(name="uc_rule")
public class Rule extends AbstractIdMantainceDomainObject{
	
	private String name;
	@ManyToOne
	@JoinColumn(name = "user_type_id")
	private RuleType type;
	private Integer score;
	
	public Rule(String name, RuleType type, Integer score) {
		this.name = name;
		this.type = type;
		this.score = score;
	}

	public String getName() {
		return name;
	}

	public RuleType getType() {
		return type;
	}

	public Integer getScore() {
		return score;
	}
}
